﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Markup;

namespace ViewMaker.Core.Silverlight
{
    internal static class SilverlightUtil
    {
        public static Brush GetColor(string colorString)
        {
            var cc = (ContentControl)XamlReader.Load(string.Format("<ContentControl Background=\"{0}\" xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" />", colorString));
            return cc.Background;
        }

    }
}
